﻿// Admin.NET 项目的版权、商标、专利和其他相关权利均受相应法律法规的保护。使用本项目应遵守相关法律法规和许可证的要求。
//
// 本项目主要遵循 MIT 许可证和 Apache 许可证（版本 2.0）进行分发和使用。许可证位于源代码树根目录中的 LICENSE-MIT 和 LICENSE-APACHE 文件。
//
// 不得利用本项目从事危害国家安全、扰乱、侵犯他人合法权益等法律法规禁止的活动！任何基于本项目二次开发而产生的一切法律纠纷和责任，我们不承担任何责任！

using Admin.NET.Core;
using SqlSugar;
using System.ComponentModel.DataAnnotations;
namespace Admin.NET.Application.Entity;

/// <summary>
/// 生产管理:生产订单
/// </summary>
[Tenant("1300000000001")]
[SugarTable("ProductionOrder", "生产管理:生产订单")]
public class ProductionOrder : EntityBaseDel
{
    /// <summary>
    /// 生产订单Id
    /// </summary>
    [Required]
    [SugarColumn(ColumnName = "ProductionOrderId", ColumnDescription = "生产订单Id", IsPrimaryKey = true, IsIdentity = true)]
    public virtual int ProductionOrderId { get; set; }
    
    /// <summary>
    /// 订单编码
    /// </summary>
    [SugarColumn(ColumnName = "ProductionOrderCode", ColumnDescription = "订单编码", Length = 32)]
    public virtual string? ProductionOrderCode { get; set; }
    
    /// <summary>
    /// 订单名称
    /// </summary>
    [SugarColumn(ColumnName = "ProductionOrderName", ColumnDescription = "订单名称", Length = 32)]
    public virtual string? ProductionOrderName { get; set; }
    
    /// <summary>
    /// 订单数量
    /// </summary>
    [SugarColumn(ColumnName = "ProductionOrderNumber", ColumnDescription = "订单数量")]
    public virtual int? ProductionOrderNumber { get; set; }
    
    /// <summary>
    /// 订单来源
    /// </summary>
    [SugarColumn(ColumnName = "ProductionOrdeSsource", ColumnDescription = "订单来源", Length = 32)]
    public virtual string? ProductionOrdeSsource { get; set; }
    
    /// <summary>
    /// 产品编号
    /// </summary>
    [SugarColumn(ColumnName = "ProductNumber", ColumnDescription = "产品编号", Length = 32)]
    public virtual string? ProductNumber { get; set; }
    
    /// <summary>
    /// 产品名称
    /// </summary>
    [SugarColumn(ColumnName = "ProductName", ColumnDescription = "产品名称", Length = 32)]
    public virtual string? ProductName { get; set; }
    
    /// <summary>
    /// 规格型号
    /// </summary>
    [SugarColumn(ColumnName = "SpecificationModel", ColumnDescription = "规格型号", Length = 32)]
    public virtual string? SpecificationModel { get; set; }
    
    /// <summary>
    /// 生产进度
    /// </summary>
    [SugarColumn(ColumnName = "ProductionSchedule", ColumnDescription = "生产进度", Length = 32)]
    public virtual string? ProductionSchedule { get; set; }
    
    /// <summary>
    /// 单位
    /// </summary>
    [SugarColumn(ColumnName = "Unit", ColumnDescription = "单位", Length = 32)]
    public virtual string? Unit { get; set; }
    
    /// <summary>
    /// 批次号
    /// </summary>
    [SugarColumn(ColumnName = "DatchNumber", ColumnDescription = "批次号", Length = 32)]
    public virtual string? DatchNumber { get; set; }
    
    /// <summary>
    /// 客户名称
    /// </summary>
    [SugarColumn(ColumnName = "CustomerName", ColumnDescription = "客户名称", Length = 32)]
    public virtual string? CustomerName { get; set; }
    
    /// <summary>
    /// 需求日期
    /// </summary>
    [SugarColumn(ColumnName = "DemandedDate", ColumnDescription = "需求日期")]
    public virtual DateTime? DemandedDate { get; set; }
    
    /// <summary>
    /// 生产订单日期
    /// </summary>
    [SugarColumn(ColumnName = "ProductionOrderDate", ColumnDescription = "生产订单日期")]
    public virtual DateTime? ProductionOrderDate { get; set; }
    
    /// <summary>
    /// 生产日期
    /// </summary>
    [SugarColumn(ColumnName = "DateInProduced", ColumnDescription = "生产日期")]
    public virtual DateTime? DateInProduced { get; set; }
    
}
